//
//  SHMediaTools.swift
//  SHMediaTools
//
//  Created by ace on 2023/6/26.
//

import Foundation
import CoreMedia

public struct SHVideoFrame: SHFrameProtocol {
    public var spsData: NSData = NSData()
    public var ppsData: NSData = NSData()
    public var naluData: NSData = NSData()
    public var timestamp: Int = 0
    
    public init() {}
    
    public func getSpsAndPpsData(sampleBuffer: CMSampleBuffer) {
//        let format = CMVideoFormatDescription(h264ParameterSets: [])
//        CMSampleBuffer()
    }
}

public protocol SHFrameProtocol {
    var spsData: NSData { get set }
    var ppsData: NSData { get set }
    var timestamp: Int { get set }
}
